import request from "../axios";

export default {
	/**
	 * 添加供应商
	 * @param {Object} params
	 */
	addSuppliers(params) {
		return request({
			method: "POST",
			url: '/suppliers/addSuppliers',
			data: params
		})
	},
	/**
	 * 分页获取供应商列表
	 * 可根据省市区查询
	 * 可根据名称电话地址查询
	 * @param {Object} params
	 */
	getSuppliersList(params) {
		return request({
			method: "POST",
			url: '/suppliers/getSuppliersList',
			data: params
		})
	},
	/**
	 * 获取单个供应商
	 * @param {Object} params
	 */
	getSuppliers(params) {
		return request({
			method: "POST",
			url: '/suppliers/getSuppliers',
			data: params
		})
	},
	/**
	 * 删除供应商
	 * @param {Object} params
	 */
	deleteSuppliers(params) {
		return request({
			method: "POST",
			url: '/suppliers/deleteSuppliers',
			data: params
		})
	},
	/**
	 * 修改供应商
	 * @param {Object} params
	 */
	updateSuppliers(params) {
		return request({
			method: "POST",
			url: '/suppliers/updateSuppliers',
			data: params
		})
	},
	/**
	 * 确定采购人
	 * @param {Object} params
	 */
	changeUser(params) {
		return request({
			method: "POST",
			url: '/suppliers/changeUser',
			data: params
		})
	},
	/**
	 * 添加采购订单
	 * @param {Object} params
	 */
	addPurchaseOrders(params) {
		return request({
			method: "POST",
			url: '/products/addPurchaseOrders',
			data: params
		})
	},
	/**
	 * 删除采购订单
	 * @param {Object} params
	 */
	deletePurchasing(params) {
		return request({
			method: "POST",
			url: '/products/deletePurchasing',
			data: params
		})
	},
	/**
	 * 分页获取采购订单列表
	 * 可根据供应商、采购人、结款方式、订单状态查询
	 * @param {Object} params
	 */
	getPurchaseOrdersList(params) {
		return request({
			method: "POST",
			url: '/products/getPurchaseOrdersList',
			data: params
		})
	},
	/**
	 * 获取单个采购订单
	 * @param {Object} params
	 */
	getPurchaseOrders(params) {
		return request({
			method: "POST",
			url: '/products/getPurchaseOrders',
			data: params
		})
	},
	/**
	 * 修改采购订单
	 * @param {Object} params
	 */
	updatePurchaseOrders(params) {
		return request({
			method: "POST",
			url: '/products/updatePurchaseOrders',
			data: params
		})
	},
	/**
	 * 审核订单
	 * @param {Object} params
	 */
	applyPurchaseOrders(params) {
		return request({
			method: "POST",
			url: '/products/applyPurchaseOrders',
			data: params
		})
	},
	/**
	 * 一键入库
	 * @param {Object} params
	 */
	oneKeyPurchaseOrders(params) {
		return request({
			method: "POST",
			url: '/products/oneKeyPurchaseOrders',
			data: params
		})
	},
	/**
	 * 查询入库记录列表
	 * @param {Object} params
	 */
	getPurchaseReceiptsList(params) {
		return request({
			method: "POST",
			url: '/purchaseReceipts/getPurchaseReceiptsList',
			data: params
		})
	},
	/**
	 * 审核入库
	 * @param {Object} params
	 */
	applyPurchaseReceipts(params) {
		return request({
			method: "POST",
			url: '/purchaseReceipts/applyPurchaseReceipts',
			data: params
		})
	},
	/**
	 * 删除入库记录
	 * @param {Object} params
	 */
	deletePurchaseReceipts(params) {
		return request({
			method: "POST",
			url: '/purchaseReceipts/deletePurchaseReceipts',
			data: params
		})
	},
	
	/**
	 * 添加产品
	 * @param {Object} params
	 */
	addDevice(params) {
		return request({
			method: "POST",
			url: '/devices/addDevice',
			data: params
		})
	},
	
	/**
	 * 获取产品列表
	 * @param {Object} params
	 */
	getDeviceList(params) {
		return request({
			method: "POST",
			url: '/devices/getDeviceList',
			data: params
		})
	},
	
	/**
	 * 查单个产品
	 * @param {Object} params
	 */
	getDevice(params) {
		return request({
			method: "POST",
			url: '/devices/getDevice',
			data: params
		})
	},
	
	/**
	 * 修改产品
	 * @param {Object} params
	 */
	updateDevice(params) {
		return request({
			method: "POST",
			url: '/devices/updateDevice',
			data: params
		})
	},
	
	/**
	 * 删除产品
	 * @param {Object} params
	 */
	deleteDevice(params) {
		return request({
			method: "POST",
			url: '/devices/deleteDevice',
			data: params
		})
	},
	
	/**
	 * 修改产品图片
	 * @param {Object} params
	 */
	changeDeviceImg(params) {
		return request({
			method: "POST",
			url: '/devices/changeDeviceImg',
			data: params
		})
	},
	
	/**
	 * 组装成品
	 * @param {Object} params
	 */
	assembleDevice(params) {
		return request({
			method: "POST",
			url: '/devices/assembleDevice',
			data: params
		})
	},
	
	/**
	 * 计算成品
	 * @param {Object} params
	 */
	calculateAssembleDevice(params) {
		return request({
			method: "POST",
			url: '/devices/calculateAssembleDevice',
			data: params
		})
	},
	
	/**
	 * 分页获取出库列表
	 * 可根据申请人，状态查询
	 * @param {Object} params
	 */
	getDevicesOutboundList(params) {
		return request({
			method: "POST",
			url: '/devicesOutbound/getDevicesOutboundList',
			data: params
		})
	},
	
	/**
	 * 获取单个出库信息
	 * @param {Object} params
	 */
	getDevicesOutbound(params) {
		return request({
			method: "POST",
			url: '/devicesOutbound/getDevicesOutbound',
			data: params
		})
	},
	
	/**
	 * 员工申请借出
	 * @param {Object} params
	 */
	addDevicesOutbound(params) {
		return request({
			method: "POST",
			url: '/devicesOutbound/addDevicesOutbound',
			data: params
		})
	},
	
	/**
	 * 修改
	 * @param {Object} params
	 */
	updateDevicesOutbound(params) {
		return request({
			method: "POST",
			url: '/devicesOutbound/updateDevicesOutbound',
			data: params
		})
	},
	
	/**
	 * 审核出库
	 * @param {Object} params
	 */
	examineDevicesOutbound(params) {
		return request({
			method: "POST",
			url: '/devicesOutbound/examineDevicesOutbound',
			data: params
		})
	},
	
	/**
	 * 获取报销列表
	 * @param {Object} params
	 */
	getExpenseList(params) {
		return request({
			method: "POST",
			url: '/expense/getExpenseList',
			data: params
		})
	},
	
	/**
	 * 添加报销申请
	 * @param {Object} params
	 */
	addExpense(params) {
		return request({
			method: "POST",
			url: '/expense/addExpense',
			data: params
		})
	},
	
	/**
	 * 获取单个报销单
	 * @param {Object} params
	 */
	getExpense(params) {
		return request({
			method: "POST",
			url: '/expense/getExpense',
			data: params
		})
	},
	
	/**
	 * 修改报销单
	 * @param {Object} params
	 */
	updateExpense(params) {
		return request({
			method: "POST",
			url: '/expense/updateExpense',
			data: params
		})
	},
	
	/**
	 * 审核报销单
	 * @param {Object} params
	 */
	examineExpense(params) {
		return request({
			method: "POST",
			url: '/expense/examineExpense',
			data: params
		})
	},
	
	/**
	 * 申请归还设备
	 * @param {Object} params
	 */
	addDevicesReturn(params) {
		return request({
			method: "POST",
			url: '/devicesReturn/addDevicesReturn',
			data: params
		})
	},
	
	/**
	 * 获取归还列表
	 * @param {Object} params
	 */
	getDevicesReturnList(params) {
		return request({
			method: "POST",
			url: '/devicesReturn/getDevicesReturnList',
			data: params
		})
	},
	
	/**
	 * 审核归还设备申请
	 * @param {Object} params
	 */
	examineDevicesReturn(params) {
		return request({
			method: "POST",
			url: '/devicesReturn/examineDevicesReturn',
			data: params
		})
	},
}